package com.teama4.shop.service;

import com.teama4.shop.domain.DeliveryAddress;
import com.teama4.shop.domain.DeliveryAddressExample;
import com.teama4.shop.mapper.DeliveryAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class DeliveryAddressServiceImpl implements DeliveryAddressService {
    @Autowired
    private DeliveryAddressMapper deliveryAddressMapper;

    @Override
    public long countByExample(DeliveryAddressExample example) {
        return deliveryAddressMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(DeliveryAddressExample example) {
        return deliveryAddressMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return deliveryAddressMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(DeliveryAddress record) {
        return deliveryAddressMapper.insert(record);
    }

    @Override
    public int insertSelective(DeliveryAddress record) {
        return deliveryAddressMapper.insertSelective(record);
    }

    @Override
    public List<DeliveryAddress> selectByExample(DeliveryAddressExample example) {
        return deliveryAddressMapper.selectByExample(example);
    }

    @Override
    public DeliveryAddress selectByPrimaryKey(Integer id) {
        return deliveryAddressMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(DeliveryAddress record, DeliveryAddressExample example) {
        return deliveryAddressMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(DeliveryAddress record, DeliveryAddressExample example) {
        return deliveryAddressMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(DeliveryAddress record) {
        return deliveryAddressMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DeliveryAddress record) {
        return deliveryAddressMapper.updateByPrimaryKey(record);
    }
}
